<?php
/**
 * Created by PhpStorm.
 * User: medivh
 * Date: 15-6-30
 * Time: 上午9:36
 */
namespace DaChongQing\Model;
use Think\Model\RelationModel;
class AnswerTitleModel extends RelationModel{
    protected $_link = array(
        'answer_title'  =>  array(
            'mapping_type' => self::HAS_MANY,
            'class_name' => 'answer_content',
            'foreign_key' => 'tid',
            'mapping_name' => 'list'
        ),
    );
}